#!/bin/sh
set -e

if [ $# -gt 0 ]; then
    base="$1"
    shift 1
else
    base="$(git main-branch)"
fi

git diff "$base"... "$@"
